//
//  StatusCellBottomView.swift
//  SynWeibo
//
//  Created by 沈艳男 on 15/9/9.
//  Copyright © 2015年 沈艳男. All rights reserved.
//

import UIKit

class StatusCellBottomView: UIView {

    override init(frame: CGRect) {
        super.init(frame: frame)
        setupUI()
    }

    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    // 设置控件
    private func setupUI() {
        //
        backgroundColor = UIColor(white: 0.95, alpha: 1.0)
        // 添加控件
        addSubview(forwardButton)
        addSubview(commonButton)
        addSubview(likeButton)
        
        /// 给按钮添加约束
        ff_HorizontalTile([forwardButton, commonButton, likeButton], insets: UIEdgeInsetsZero)
    }
    
    // MARK: 懒加载控件
    private lazy var forwardButton: UIButton = UIButton(title: " 转发", imageName: "timeline_icon_retweet", color: UIColor.darkGrayColor(), fontSize: 12)
    private lazy var commonButton: UIButton = UIButton(title: " 评论", imageName: "timeline_icon_comment", color: UIColor.darkGrayColor(), fontSize: 12)
    private lazy var likeButton: UIButton = UIButton(title: " 赞", imageName: "timeline_icon_unlike", color: UIColor.darkGrayColor(), fontSize: 12)
    
}
